<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
<%
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
<html>
  <head>
    <base href="<%=basePath%>">  
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/edittable.css"  ></link>  
	<link rel="stylesheet" type="text/css" href="css/validate.css"  ></link> 
	<link rel="stylesheet" type="text/css" href="css/maintable.css" ></link> 
	<script type="text/javascript"  src="js/jquery-1.8.0.js"></script>
	<script>		
			$(function(){
				$("#btn").click(function(){
					window.location.href='OrderServlet.do?flag=manage&pageIndex=' + ${param.pageIndex };
				});
			});
			
	</script>
	<style>
		input{
			color:red;
		}
	</style>
  </head>
  
  <body>
    <div class ="div_title">
		 <div class="div_titlename"> <img src="images/san_jiao.gif" ><span>订单商品列表</span></div>
	 </div>
	 <table class="main_table">
				<tr> 
		 			<th>商品名称</th>
		 			<th>单位</th>
		 			<th>单价</th>
			 		<th>购买数量</th>
		 		</tr>	
		 		<c:forEach var="orderGoods" items='${orderGoods }'>
		 			<tr>
		 				<td> ${orderGoods.goodsName }</td>
		 			 	<td>${orderGoods.unit }</td>	
		 			 	<td> ${orderGoods.price } </td>   
		 			 	<td>${orderGoods.saleCount }</td> 
		 		</tr>
		 		</c:forEach>
	</table>
	  <div class ="div_title">
		 <div class="div_titlename"> <img src="images/san_jiao.gif" ><span>订单详情列表</span></div>
	 </div>
				 
		 <table class="edit_table" >
		 		<tr>
		 			 	<td class="td_info">订单号:</td>	
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox"  name="memberName" readonly="readonly" value="${orderInfo.orderNo }"/> 
		 			 	</td>   
		 			 	<td class="td_info">邮费:</td> 
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${orderInfo.postage }" /> 
		 			 	</td>
		 			 	
		 		</tr>
		 		<tr>
		 			<td class="td_info">付款方式:</td>	
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${orderInfo.payMethod }"  /> 
		 			 	</td>   
		 			 	<td class="td_info">邮递方式:</td> 
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${orderInfo.postMethod }"  /> 
		 			 	</td>
		 		</tr>
		 		<tr>
		 				<td class="td_info">下单日期:</td>	
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${orderInfo.orderDate }"  /> 
		 			 	</td>   
		 			 	<td class="td_info">邮寄地址:</td> 
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${orderInfo.address }"  /> 
		 			 	</td>
		 		</tr>
		 		<tr>
		 			<td class="td_info">订单状态:</td>	
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${orderInfo.orderState }"  /> 
		 			 	</td>   
		 			 	<td class="td_info">发货日期:</td> 
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${orderInfo.sendDate }"  /> 
		 			 	</td>
		 		</tr>
		 		<tr>
		 			<td class="td_info">订单金额:</td>	
		 			 	<td class="td_input_short" id="ip"> 
		 			 		 <input type="text" class="txtbox" readonly="readonly" value="${orderInfo.amount }" name="adminName" /> 
		 			 	</td>   
		 			 	<td class="td_info">会员等级:</td> 
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${orderInfo.memberName }" name="adminName" /> 
		 			 	</td>
		 		</tr>
		 		<tr>
		 			<td class="td_info"> </td>	
			 			<td> 
			 			<button id="btn">返回</button>
			 			</td>	
		 			<td>
		 			</td>	
		 		</tr>
		</table>
  </body>
</html>